﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WarehouseManagement.Domain.Entity
{

    /// <summary>
    /// 发货申请
    /// </summary>
    [SugarTable("ShippRequestApp")]
    public class ShippRequestApp: Audit
    {
        /// <summary>
        /// 发货申请id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int ShippRequestAppId { get; set; }

        /// <summary>
        /// 单据编号
        /// </summary>
        public string? SRANumber { get; set; }
        /// <summary>
        /// //发货主题
        /// </summary>
        public string? SPRTopic { get; set; }

        /// <summary>
        /// 应发日期
        /// </summary>
        public DateTime? SRADueDate { get; set; }

        /// <summary>
        /// 申请人
        /// </summary>
        public string? SRAApplicant { get; set; }
        /// <summary>
        /// 发货类型(0是采购退货，1是销售)
        /// </summary>
        public  int? ShipType { get; set; }
        /// <summary>
        /// 采购退货
        /// </summary>
        public int? ReturnProductId { get; set; }
        /// <summary>
        /// 销售合同明细表id
        /// </summary>
        public int? SaleContractProductId { get; set; }
        /// <summary>
        /// 客户id
        /// </summary>
        public int? ClientId { get; set; }
        /// <summary>
        /// 供应商id
        /// </summary>
        public int? VendorId { get; set; }
        /// <summary>
        /// 客户或者供应商名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 收货人
        /// </summary>
        public string? SRAReceivPeople { get; set; }
      

        /// <summary>
        /// 收货地址
        /// </summary>
        public string? SRAReceivAddress { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string? SRAReceivePhone { get; set; }

        // <summary>
        /// 人员档案id
        /// </summary>
        public int? ManpowerId { get; set; }

        // <summary>
        /// 发货人
        /// </summary>
        public string? SRAConsigner { get; set; }

        // <summary>
        /// 交货日期
        /// </summary>
        public DateTime? SRADeliveryDate { get; set; }

        // <summary>
        /// 发货方式
        /// </summary>
        public string? SRAShipmentsType { get; set; }

        // <summary>
        /// 快递公司
        /// </summary>
        public string? SRACourierCompanie { get; set; }

        // <summary>
        /// 快递单号
        /// </summary>
        public string? SRATrackingNumber { get; set; }

        // <summary>
        /// 快递费用
        /// </summary>
        public decimal? SRACourierCharges { get; set; }

        // <summary>
        /// 备注
        /// </summary>
        public string? SRARemark { get; set; }

        /// <summary>
        /// 发货状态
        /// </summary>
        public int? ShipState { get; set; }



    }
}
